import {createRouter, createWebHashHistory, RouteRecordRaw} from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: "/home",
        name: "Home",
        component: () => import(/* webpackChunkName: "Home" */ '@/pages/home.vue')
    },
    {
        path: "/",
        redirect: {name: "Home"}
    }
];

const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;
